<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
// 	String path1 = (String)request.getAttribute("path"); 		
// 	String message = (String)request.getAttribute("message"); 	
	
	
// 	request.getRequestDispatcher("/message.jsp").forward(request, response);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
       <script type="text/javascript">
       
       
       <c:if test = "${ not empty message }" >
          alert("${ message }");
       </c:if>
       
       <c:if test = "${ not empty path }" >
          document.location.href="<%=path%>/${ path }";
       </c:if>
//            <s:if test="message!=null">
//                alert("<s:property value='message'/>");
//            </s:if>
           
//            <s:if test="path!=null">
//               document.location.href="<%=path%>/<s:property value='path'/>";
//            </s:if>
       </script>
  </head>
  
  <body >
       
  </body>
</html>
